//
//  TempViewController.swift
//  weibo19
//
//  Created by Arvin on 15/11/16.
//  Copyright © 2015年 Arvin. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {
    @objc private func didClickRetweetedBtn() {
        let vc = TempViewController()
        retweeter.NavigitionController()?.pushViewController(vc, animated: true)
    }
    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.whiteColor()
        view.addSubview(retweeter)
        retweeter.addTarget(self, action: "didClickRetweetedBtn", forControlEvents: UIControlEvents.TouchUpInside)
        
        retweeter.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(view.snp_top).offset(100)
            make.left.equalTo(view.snp_left)
            make.width.equalTo(100)
            make.height.equalTo(30)
        }
    }

    private lazy var retweeter: UIButton = {
        let ret = UIButton()
        ret.setImage(UIImage(named: "timeline_icon_retweet"), forState: UIControlState.Normal)
        ret.setTitle("转发", forState: .Normal)
        ret.setTitleColor(UIColor.blackColor(), forState: UIControlState.Normal)
        ret.titleLabel?.font = UIFont.systemFontOfSize(14.0)
        return ret
        }()
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}
